package com.manlitech.elkboot;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
@Slf4j
public class ElkbootApplication {

    Logger logger = LoggerFactory.getLogger(ElkbootApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(ElkbootApplication.class, args);
    }

    @RequestMapping("/hello")
    public String hello(){
        return "hello jenkins , welcome to jenkins ,it's auto build ,bye";
    }

}
